<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <input type="text" value="sjhdhjs6555@kiwjj.com">
  <span></span>
</body>
<script>
  const ipt=document.querySelector("input")
  const span = document.querySelector("span")
  ipt.addEventListener("keyup",e=>{
    let val=e.target.value
    let reg=/^[\w-]+@([\w-]+\.)+(com|cn|net|cc|org)$/gi
     span.innerHTML= reg.test(val)?"正确":"错误"
  })
</script>
</html>